package ${package}.${moduleName}.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.dwliu.framework.common.validator.group.CreateGroup;
import me.dwliu.framework.common.validator.group.UpdateGroup;
import me.dwliu.framework.core.mybatis.dto.BaseDTO;
<#if hasBigDecimal>
import java.math.BigDecimal;
</#if>
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.Date;

/**
 * ${comments!}
 *
 * @author ${author!} ${email!}
 * @date ${datetime!}
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("${comments!}")
public class ${className}DTO extends BaseDTO {

<#list columns as column>
	/**
	 * ${column.comment!}
	 */
    <#if column.columnName == pk.columnName>
	@NotNull(message = "主键不能为空", groups = UpdateGroup.class)
	@Null(message = "主键必须为空", groups = CreateGroup.class)
    </#if>
	@ApiModelProperty(value = "${column.comment!}")
	private ${column.propType} ${column.propname};
</#list>

}
